The /etc/config/ddns in particular might not be present on the system,
don't fail if it is absent.
Fixes: #5838
Fixes: 9ba20645b0 ("luci-proto-wireguard: rewrite protocol handler")
Signed-off-by: Jo-Philipp Wich <[email protected]>
(cherry picked from commit
340183786e5441197141efaf7d8cf0e682047bfe)
return Promise.all([
network.getWANNetworks(),
network.getWAN6Networks(),
- uci.load('ddns'),
- uci.load('system'),
+ L.resolveDefault(uci.load('ddns')),
+ L.resolveDefault(uci.load('system')),
parent.save(null, true)
]).then(function(data) {
var hostnames = [];